Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: precision for invoice outstandings #38323

Conversation

GursheenK
Copy link
Member

Bug

When a payment is made against an Invoice with the allocated amount having precision more than that of the outstanding amount precision, the outstanding amount in the invoice is set to have higher precision than the currency precision. Therefore, when another payment is reconciled against this invoice, the validation for ensuring that the outstanding is correct fails.

Screenshot

Screenshot 2023-11-24 at 2 57 19 PM

Fix
Set the balance amount in update_outstanding_amt by using the precision for the field.

@GursheenK GursheenK marked this pull request as ready for review November 24, 2023 10:49
@deepeshgarg007 deepeshgarg007 merged commit 190f77a into frappe:version-13-hotfix Nov 26, 2023
6 of 7 checks passed
frappe-pr-bot pushed a commit that referenced this pull request Nov 29, 2023
## [13.54.14](v13.54.13...v13.54.14) (2023-11-29)

### Bug Fixes

* patch - Duplicate entry quality inspection parameter (backport [#38262](#38262)) ([#38265](#38265)) ([095d99d](095d99d))
* precision for invoice outstandings ([#38323](#38323)) ([190f77a](190f77a))
@frappe-pr-bot
Copy link
Collaborator

🎉 This PR is included in version 13.54.14 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants